import request from '@/utils/request'

//查询所有诗词
export function PageListPoetry(query){
  return request({
    url: '/AncientPoetry/listPoetry',
    method: 'get',
    params: query
  })
}
//删除诗词
export function DeletePoetry(id){
  return request({
    url: '/AncientPoetry/deletePoetry',
    method: 'delete',
    params: id
  })
}
//修改诗词
export function UpdatePoetry(Poetry){
  return request({
    url: '/AncientPoetry/updatePoetry',
    method: 'post',
    params: Poetry
  })
}

//查询所有作者
export function GetAllAuthor(){
  return request({
    url: '/poetryAuthor/getAllAuthor',
    method: 'get',
  })
}


export function InsertPoety(Poetry){
  return request({
    url: '/AncientPoetry/insertPoetry',
    method: 'post',
    params: Poetry
  })
}
